package com.topone.repository;

import com.topone.dataObject.CouponCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CouponCodeRepository extends JpaRepository<CouponCode,Integer>{

    public List<CouponCode> findByStatus(Integer status);

    public CouponCode findByCode(String code);

}
